{% if field  %}
    <div id="{{ field.auto_id }}_line" class="field{% if field.field.required %} required{% endif %}{if field.errors %} errors{% endif %}">
        <div class="field-content">
            {{ field }}
            {% if field.errors %}
                <div class="errors">
                    {{ field.errors|join:", "|escape }}
                </div>
            {% endif %}
            {% if field.help_text %}
                <div class="helptext">
                    {{ field.help_text|safe }}
                </div>
            {% endif %}
        </div>
        <label class="field-name" for="{{ field.auto_id }}">{{ field.label|escpae }}</label>
    </div>
{% endif %}
